package com.sleep.psy.external_server.business.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.sleep.psy.external_server.business.psy.entity.PsyBaseVideo;
import com.sleep.psy.external_server.business.resourse.entity.ResourseScale;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wenliguo
 * @since 2025-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MainUser implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("账号")
    private String accountId;

    @ApiModelProperty("姓名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("性别：0：未知；1：男；2：女")
    private Integer sex;

    @ApiModelProperty("出生日期")
    private String birthday;

    @ApiModelProperty("民族")
    private String nationality;

    @ApiModelProperty("籍贯")
    private String nativePlace;

    @ApiModelProperty("身份：1：患者")
    private Integer userType;

    @ApiModelProperty("所属分组")
    private Integer groupId;

    @ApiModelProperty("组织机构")
    private Long deptId;

    @ApiModelProperty("状态：0：不可用；1：可用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("更新时间")
    private String updateTime;

    @TableField(exist = false)
    @ApiModelProperty("所属机构")
    private String deptName;

    @TableField(exist = false)
    @ApiModelProperty("量表")
    private List<ResourseScale> scaleList;

    @TableField(exist = false)
    @ApiModelProperty("音频")
    private List<PsyBaseVideo> audioList;

    @TableField(exist = false)
    @ApiModelProperty("视频")
    private List<PsyBaseVideo> videoList;


}
